| Visual Basic (Declaration) | |
|---|---|
Public Overloads Function FindEntities(Of T As Class)( _ ByVal entityState As EntityState _ ) As IEnumerable(Of T) | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As EntityManager Dim entityState As EntityState Dim value As IEnumerable(Of T) value = instance.FindEntities(Of T)(entityState) | |
| C# | |
|---|---|
public IEnumerable<T> FindEntities<T>( EntityState entityState ) where T: class | |
| C++/CLI | |
|---|---|
public: IEnumerable<T^>^ FindEntitiesgeneric<typename T> ( EntityState entityState ) where T: ref class | |
Parameters
- entityState
- EntityState(s) of entities to return
Type Parameters
- T
- The type of Entity to retrieve
Return Value
A collection of EntitiesAs the EntityState is a flags enumeration, you can supply multiple OR'ed values to search for multiple entity states. Detached Entities are not associated with an EntityManager and won't be returned.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family